package com.mingqijia.gassafety.job.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordDtu;
import com.mingqijia.gassafety.db.entity.RecordReceiverValve;
import com.mingqijia.gassafety.db.mapper.RecordReceiverValveMapper;
import com.mingqijia.gassafety.job.service.RecordReceiverValveService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接收器和电磁阀上报数据 服务实现类
 * </p>
 *
 * @author li.shiying
 * @since 2023-03-24
 */
@Service
public class RecordReceiverValveServiceImpl extends ServiceImpl<RecordReceiverValveMapper, RecordReceiverValve> implements RecordReceiverValveService {

    @Override
    public List<RecordReceiverValve> getListByRecordId(List<Long> list) {
        LambdaQueryWrapper<RecordReceiverValve> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(RecordReceiverValve::getRecordId,list);
        return this.list(queryWrapper);
    }
}
